//
//  StreetView.m
//  tmp
//
//  Created by Ky on 11. 5. 5..
//  Copyright 2011 서울. All rights reserved.
//

#import "StreetView.h"
#import "DetailView.h"


@implementation StreetView

@synthesize btnBack;
@synthesize imgStreet;
@synthesize btnStore;

- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
{
    self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
    if (self) {
        // Custom initialization
    }
    return self;
}

- (void)dealloc
{
    [imgStreet release];
    [btnBack release];
    [btnStore release];
    [super dealloc];
}

- (void)didReceiveMemoryWarning
{
    // Releases the view if it doesn't have a superview.
    [super didReceiveMemoryWarning];
    
    // Release any cached data, images, etc that aren't in use.
}

#pragma mark - View lifecycle

- (void)viewDidLoad
{
    [super viewDidLoad];
    
    imgStreet.image = [UIImage imageNamed:@"street.png"];
    // Do any additional setup after loading the view from its nib.
}

- (void)viewDidUnload
{
    [self setImgStreet:nil];
    [self setBtnBack:nil];
    [self setBtnStore:nil];
    [super viewDidUnload];
    // Release any retained subviews of the main view.
    // e.g. self.myOutlet = nil;
}

- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
{
    // Return YES for supported orientations
    return (interfaceOrientation == UIInterfaceOrientationLandscapeRight);
}

- (IBAction)selectBtnBack
{
    [self dismissModalViewControllerAnimated:YES];
}

-(IBAction)selectBtnStore
{    
    DetailView *detailView = [[DetailView alloc] initWithNibName:nil bundle:nil];
    [self presentModalViewController:detailView animated:YES];
}

@end
